//
//  Player.h
//  CandyCrushClone
//
//  Created by Petar on 1/31/15.
//  Copyright (c) 2015 Nestorov Engineering. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RWTChain.h"
#import "Hero.h"

@interface Player : NSObject

@property (assign) NSInteger playerId;
@property (assign) NSInteger cookieType1Counter;
@property (assign) NSInteger cookieType2Counter;
@property (assign) NSInteger cookieType3Counter;
@property (assign) NSInteger cookieType4Counter;
@property (assign) NSInteger cookieType5Counter;
@property (assign) NSInteger cookieType6Counter;
@property (nonatomic) NSArray *playerInfoFromServer;
@property (nonatomic) Hero *hero;
@property (assign) BOOL hasMatched4Cookies;
@property (assign) BOOL hasMatched5Cookies;
@property (nonatomic) NSDictionary *gameWinConditions;

// User Variables
@property (nonatomic) NSString *name;
@property (assign) NSInteger wins;
@property (assign) NSInteger losses;
@property (assign) NSInteger rank;
@property (assign) NSInteger money;

- (instancetype)initWithHeroType:(NSInteger)heroType;
- (void)calculateScoreForChains:(NSSet *)chains;
- (void)setCounterValuesFromServer;
- (void)resetCounters;
- (void)performHeroSkillWithOtherPlayer:(Player *)otherPlayer;

@end
